import { createRouter, Router, createWebHistory, RouteRecordRaw } from "vue-router";

import HomeView from "~/views/home/Home.vue";
import LoginView from "~/views/login/Login.vue";

const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name: "Home",
        component: HomeView,
        meta: {
            title: "首页",
            icon: "home",
        }
    },
    {
        path: "/login",
        name: "Login",
        component: LoginView,
    },
]

const router: Router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router